package com.an.java.javaall.java8;

public class TkmTest {
    private int data;

    public TkmTest() {
        this(10);
    }

    public TkmTest(int data) {
        this.data = data;
    }

    public void display() {
        class Dec{
            public void dec(){
                data--;
            }
        }

        new Dec().dec();
        System.out.println("neibu data:"+ data);
    }

    public static void main(String[] args) {
        int data = 0;
        TkmTest tkmTest = new TkmTest();
        tkmTest.display();
        System.out.println(data);
    }
}
